home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9278 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  53 lines

  1. Path: ix.netcom.com!netnews
  2. From: sstrader@ix.netcom.com (Scott Strader )
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP -->> How to Include a File ??
  5. Date: 29 Feb 1996 19:10:52 GMT
  6. Organization: Netcom
  7. Message-ID: <4h4tns$714@cloner4.netcom.com>
  8. References: <4gtgo0$jvr@news.service.uci.edu>
  9. NNTP-Posting-Host: atl-ga12-25.ix.netcom.com
  10. X-NETCOM-Date: Thu Feb 29 11:10:52 AM PST 1996
  11.  
  12. In <4gtgo0$jvr@news.service.uci.edu> yqian@leakey.oac.uci.edu (Yao-jin 
  13. Qian) writes: 
  14.  
  15. >
  16. >Dear Netter:
  17. >
  18. >I have a porblem with MSC++4.0. When I include a *.cpp file ( such as a 
  19. >simple function definition or a simple class) by using the command of
  20. >"add file to Project", I could not compile that file !! Each time I got 
  21. an error
  22. >message "C1010", can not find precompiled header file or somthing, but I 
  23. >do not include any precompiled header in my little *.cpp file.
  24. >
  25. >Coming from WorkStation, this is really frustrating for me since I used
  26. >to a lot of small files being compiled seprately, then combined togather
  27. >either to a lib file or link them by my makefile program.
  28. >
  29. >Please Help me.
  30. >
  31. >
  32. >Thanks for Your time
  33. >
  34. >Yaojin Qian
  35. >
  36. >University of California, Irvine
  37. >Medical Center
  38. >Dept. of Radiation Oncology
  39. >yqian@fourier.oac.uci.edu
  40. >
  41.  
  42. You need:
  43.  
  44. #include "stdafx.h"
  45.  
  46. with the include section of your CPP file.
  47.  
  48. Look under Build|Settings...  On the C/C++ tab, look at the Category 
  49. "Precompile Headers."
  50.  
  51. Scott S.
  52. sstrader@ix.netcom.com
  53.